package com.bms.common.base.common.exception;

public enum EnumSvrResult {
	/**
	 * 操作成功
	 * */
	OK("0", "成功！"),
	/**
	 *喔唷！服务器错误！
	 * */
	ERROR("1", "喔唷！服务器错误."),
	
	ERROR_PHONE_IS_USED("2", "手机号码已经被使用."),
	
	ERROR_TOKEN("3", "TOKEN错误或已失效，请重新登陆."),
	
	ERROR_PARAMS("4","参数错误."),
	
	ERROR_SENG_MSG("5","短信發送失敗."),
	
	FILE_UPLOAD_FAIL("6","文件上傳失敗."),
	
	ERROR_MSG_REPEAT("7","请勿重复发送."),
	
	ERROR_MSG_CODE("8","验证码错误."),
	
	ERROR_DELETE_ADMIN("9","系统管理员不能删除."),
	
	ERROR_DELETE_ONLINE("10","当前用户不能删除."),
	
	DEFIN_ACCOUNT("11","用户不存在."),
	
	LOCKED_ACCOUNT("12","用户已被锁定."),
	
	ERROR_PASSWORD("13","密码错误."),
	
	ERROR_DEL_ROLE("14","该角色已被使用."),
	
	ERROR_DEL_MENU("15","该菜单已被使用."),
	
	ERROR_GET_USER_BY_CODE("1000","获取用户信息失败"),
	
	ERROR_CHECK_USER_INFO("1001","验证用户信息失败"),
	
	ERROR_CONVER_JSON("2000","JSON转换错误."),
	
	ERROR_TOKEN_NULL("2001","TOKEN不能为空."),
	
	ACCESS_LIMIT_REACHED("3001", "访问太频繁！"),
	
	DEFIND_MATCH("4001", "赛事不存在！"),
	
	ERROR_MATCH_STATUS("4002", "赛事状态错误！"),
	
	VENUE_FULL("4003", "赛事名额已满！"),
	
	MATCH_ENROLL_ERROR("4004", "赛事暂未开启报名！"),
	
	MATCH_ENROLL_DATE_ERROR("4005", "不在赛事报名时间内！"),
	
	
	ERROR_PAY("5001", "支付失敗！"),
	
	
	DEFIND_ORDER("6001", "訂單不存在！"),
	
	ERROR_ORDER_STATUS("6002", "訂單状态异常！"),
	
	;
	
	
	
	private String val;
	private String name;

	EnumSvrResult(String val, String name) {
		this.val = val;
		this.name = name;
	}

	public String getVal() {
		return this.val;
	}

	public String getName() {
		return this.name;
	}
}
